package com.tongji.diy.event
{
	/**
	 * 
	 * @author Sun
	 * 
	 */
	import com.tongji.diy.view.component3D.RoomBorder;
	
	import flash.events.Event;
	import flash.geom.Point;
	
	public class UploadRoomBorderEvent extends Event
	{
		public static const UPLOAD_ROOM_BORDER:String = "uploadRoomBorder";
		
		//墙体本体、墙的左端点位置、墙的右端点位置
		public var roomBorder:RoomBorder;
		public var startPosition:Point;
		public var endPosition:Point;
		public var register:Boolean;
		
		public function UploadRoomBorderEvent(type:String, roomBorder:RoomBorder, startPosition:Point, endPosition:Point, register:Boolean = false)
		{
			super(type);
			this.roomBorder = roomBorder;
			this.startPosition = startPosition;
			this.endPosition = endPosition;
			this.register = register;
		}
		
		override public function clone():Event
		{
			return new UploadRoomBorderEvent(type, roomBorder, startPosition, endPosition, register);
		}
	}
}